import React, {JSX} from "react";
import {Image, View} from "@tarojs/components";
import './index.scss';

const Col: React.FC<ICol> = ({title, icon}): JSX.Element => {
  return (
    <View className='Col'>
      <Image lazyLoad className='icon' src={icon}></Image>
      <View className='title'>{title}</View>
    </View>
  )
}

export interface ICol {
  title: string;
  icon: string;
  path?: string;
}

export default Col;
